package com.test.jicheng;

public class DoCglib {
    public static void main(String[] args) {
        CglibPProxy proxy = new CglibPProxy();
        //通过生成子类的方式创建代理类
        Car proxyImp = (Car)proxy.getProxy(Car.class);
        proxyImp.run();
        proxyImp.go();
        proxyImp.test();
        //不仅仅是public，protect和不加修饰符都行
    }
}
